package listeners;

import java.util.EventObject;

import entities.Entity;

public class DamageEvent extends EventObject {

	private static final long serialVersionUID = 1L;

	private final Entity attacker;

	public DamageEvent(Object source, Entity attacker, int damage) {
		super(source);
		this.attacker = attacker;
	}
	
	public Entity getAttacker() {
		return attacker;
	}
}
